//改变商品数量

export const changeGoodNum = (id, num,gids,fn) => {
     $.ajax({
        type: "post",
        url: _changeGoodNumUrl,
        data: {
            gids:gids,
            goodid: id,
            num: num
        },
        dataType: "json",
        success:function (res) { 
            fn(res);
         }
    });
};




export const delGood = (id,gids,fn) => {
     $.ajax({
        type: "post",
        url: _delGoodUrl,
        data: {
            gids:gids,
            cartid: id
        },
        dataType: "json",
        success:function (res) { 
            fn(res);
         }
    });
};


